package com.example.taobaounion.utils;

import com.example.taobaounion.presenter.impl.CategoryPagerPresenterImpl;
import com.example.taobaounion.presenter.impl.DiscountTicketPresenterImpl;
import com.example.taobaounion.presenter.impl.HomePresenterImpl;
import com.example.taobaounion.presenter.impl.SelectPresenterImpl;

/**
 * @author : Administrator
 * @descreption : Presneter的管理类
 */
public class PresenterManager {
    private CategoryPagerPresenterImpl mCategoryPagerPresenterImpl;
    private HomePresenterImpl mHomePresenterImpl;
    private DiscountTicketPresenterImpl mDiscountTicketPresenterImpl;
    private SelectPresenterImpl mSelectPresenterImpl;


    private static final PresenterManager ourInstance = new PresenterManager();
    public static PresenterManager getInstance() {
        return ourInstance;
    }

    public CategoryPagerPresenterImpl getCategoryPagerPresenterImpl() {
        return mCategoryPagerPresenterImpl;
    }

    public HomePresenterImpl getHomePresenterImpl() {

        return mHomePresenterImpl;
    }

    public DiscountTicketPresenterImpl getDiscountTicketPresenterImpl() {
        return mDiscountTicketPresenterImpl;
    }
    public SelectPresenterImpl getSelectPresenterImpl() {
        return mSelectPresenterImpl;
    }






    private PresenterManager() {
        mCategoryPagerPresenterImpl = new CategoryPagerPresenterImpl();
        mHomePresenterImpl = new HomePresenterImpl();
        mDiscountTicketPresenterImpl = new DiscountTicketPresenterImpl();
        mSelectPresenterImpl = new SelectPresenterImpl();
    }
}
